export const table_config = () => {
    const config = {
        pageSize: 10,
        pageNum: 1,
        total: 1000,
        rowKey: "roleId", //如果需要树型数据填写这个，否则为空
        defaultColumnWidth: null,//默认的列宽

        //UI
        defaultExpandAll: false, //是否默认展开所有行
        pagingShow: false,//本页1-2
        totalShow: false,//共10条数据
        paginationShow: false,//分页

        selectionChange:false, //是否支持多选

        buttonList: [
            {name: '刷新', type: 'primary', plain: true, emitLabel: 'refresh'}
        ],
        tableList: [
            {label: '用户编号', key: 'userId'},
            {label: '登陆名称', key: 'username'},
            {label: '用户昵称', key: 'nickName'},
            {label: '联系电话', key: 'phonenumber'},
            {label: '登陆地址', key: 'lastLoginIp', },
            {label: '最后登陆时间', key: 'lastLoginTime'}
        ],
        tableButton: {
            name: '操作',
            list: [
                {name: '强退', type: 'danger', emitLabel: 'quit',power:"monitor:online:forceLogout"}
            ]
        }
    }
    return config
}